package com.feinno.urcs.group.interop.rpcclient;

import com.feinno.urcs.group.interop.IUserIndexService;
import com.feinno.urcs.group.interop.entity.FXCatalogIndex;
import com.feinno.urcs.group.interop.entity.FXMobileNo;
import org.helium.framework.annotations.ServiceImplementation;

/**
 * @author Li.Hongbo <lihongbo@feinno.com>
 */
@ServiceImplementation
public class IUserIndexServiceImpl2 implements IUserIndexService {

	@Override
	public FXCatalogIndex getUserIndexByMobileNo(FXMobileNo mobileNo) throws Exception {
		FXCatalogIndex index = new FXCatalogIndex();
		String m = String.valueOf(mobileNo.getMobileNo()).substring(2);
		index.setLogicalPoolId(0);
		index.setUserId(Integer.parseInt(m));
		index.setSid(0);
		return index;
	}

	@Override
	public FXCatalogIndex getUserIndexBySid(int sid) throws Exception {
		return null;
	}

	@Override
	public FXCatalogIndex getUserIndexByUserId(int uid) throws Exception {
		return null;
	}

	@Override
	public FXCatalogIndex getUserIndexByEmail(String email) throws Exception {
		return null;
	}

	@Override
	public int getOriginalSidByMobileNo(FXMobileNo mobileNo) {
		return 0;
	}
}
